package com.jtech.together.mvp.contract;

import com.jtech.together.model.TrendsModel;
import com.jtech.together.mvp.base.BaseContract;

import java.util.List;

/**
 * 动态页面
 * Created by wuxubaiyang on 2017/5/10.
 */
public interface TrendsContract {
    interface Presenter extends BaseContract.Presenter {
        void loadTrends(int pageIndex, int displayNumber, boolean loadMore);

        void like(TrendsModel trendsModel, int count);

        void unlike(TrendsModel trendsModel, int count);
    }

    interface View extends BaseContract.View {
        void loadSuccess(List<TrendsModel> trendsModels, boolean loadMore);

        void loadFail(String error);

        void operationSuccess(TrendsModel trendsModel);

        void operationFail(String error);
    }
}